* Replication file of Baqaee, Burstein and Koike-Mori (2023) *****************
*  Yasutaka Koike-Mori (PhD student in UCLA Economics), 08/2023
*  Description: Processing UK microdata and prices. 
*  Before running the program, please run the batch file to create the necessary folders.

clear
cd data

** preprocessing  ***
do Basket_kids_merge.do
do basket_construction.do
do basket_construction_disaggregated.do
do price_constructon.do
do chained_construction_dis.do
do chained_construction.do
do decitile_construction.do
do decitle_chained_construction_dis.do
 

** Engel estimations  ***
do Engel_construction.do
do Engel_construction_age.do
do Engel_construction_married.do
do Engel_construction_cpi.do
do Engel_construction_forMatlab.do

** missing price Elasticity Estimation**
do Engel_construction_forMatlab.do
do percentile_construction_forEstXY.do
do Est_XYelast.do

*****others*****
* do boot_construction.do
* do Est_test.do

